package com.dk.feign;

import com.dk.data.Result;
import com.dk.domain.TCarDTO;
import com.dk.feign.fallback.VehicleServiceFeignBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "dongdongershouche-vehicle-service",fallback = VehicleServiceFeignBack.class)  //服务名用来找项目
public interface VehicleServiceFeign {

    @GetMapping(value = "/tCarController/selectById/{id}") //找到controller以及下面的方法
    Result<TCarDTO> selectById(@PathVariable("id") Long id);
}
